package cn.edu.nju.ws.sview.views.data;
/**
 * 整个推荐系统内部的代表item的数据结构
 * @author lxq
 *
 */
public class RecommItem{
	private int itemId;
	private int itemType;
	private String lang;
	public RecommItem(int id, int type){
		itemId = id;
		itemType = type;
	}
	public RecommItem(int id, int type, String lan){
		itemId = id;
		itemType = type;
		lang = lan;
	}
	public int getItemId(){
		return itemId;
	}
	public int getItemType(){
		return itemType;
	}
	public boolean equals(Object obj){
		return itemId == ((RecommItem)obj).getItemId() && itemType 
				== ((RecommItem)obj).getItemType();
	}
	public String getLang(){
		return lang;
	}
	public String toString(){
		return  itemId + "-" + itemType;
	}
}